Method and Device for Providing Programs to Multiple End User Devices

ABSTRACT

A scheme for providing programs to multiple end user devices. Two types of media streams that convey a first group of programs are provided to multiple end user devices via an edge device. The two types of programs include a unicast media stream and a multicast media stream. When a request from a first end user device to view a first program that belongs to the first group of programs is received, a type of a media stream that conveys the first program to a second end user device is selectively switched, in response to bandwidth constraints imposed on a communication path coupled to the edge device.

RELATED APPLICATIONS

The present application is related to and claims the priority benefit of the following U.S. provisional patent applications, each of which is incorporated herein by reference: U.S. Provisional Patent Application No. 60/764,736, filed 1 Feb. 2006, U.S. Provisional Patent Application No. 60/764,852, filed 2 Feb. 2006, and U.S. Provisional Patent Application No. 60/744,145, filed 3 Apr. 2006.

FIELD OF THE INVENTION

The present invention relates to communication systems and especially to methods and systems for providing programs to multiple end user devices.

BACKGROUND

The number of television channels (programs) has dramatically increased during the last decade. In addition, various technologies such as high definition television require larger bandwidth.

In order to provide many programs to multiple user devices various techniques such as statistical multiplexing and various compression schemes (such as but not limited to the MPEG compression standards) were developed. These techniques can improve the bandwidth utilization of existing infrastructure. Nevertheless, even when these techniques are implemented the number of programs that can be provided to users is relatively limited.

The following patents and patent applications, all being incorporated herein by reference, illustrate some prior art methods and devices for providing multiple programs to users: U.S. Pat. No. 6,597,670 of Tweedy et al., entitled “Method and system for distributing subscriber services using wireless bidirectional broadband loops”; U.S. Patent Application Publication Serial Number 2005/0033342 of Rosetti et al., entitled “Technique for providing a virtual digital video recorder service through a communication network”; U.S. Patent Application Publication Serial Number of Carlucci et al., entitled “Technique for effectively providing various entertainment services thorough a communication network”; PCT Patent Application Publication No. WO 2005/008419 of Compton el al., entitled “Distributed and scalable architecture for on demand session and resource management”; PCT Patent Application Publication No. WO 2005/022796 of Krause et al., entitled “Advanced, adaptive video multiplexing system”; PCT Patent Application Publication No. WO 2005/022892 of Krause et al., entitled “Video multiplexer system providing low-latency VCR-like effects and program changes” and U.S. Pat. No. 6,718,552 of Goode, entitled “Network bandwidth optimization by dynamic channel allocation”.

There is a need to provide efficient methods and devices for providing programs to multiple users.

SUMMARY OF THE INVENTION

A device for providing multiple programs. The device includes an output interface adapted to: (i) provide to an edge device two types of media streams that convey a first group of programs; wherein the two types comprises a unicast media stream and a multicast media stream; wherein the media streams are provided via the edge device to multiple end users; (ii) receive a request from a first end user device to view a first program that belongs to the first group of programs; and a controller adapted to determine when to selectively switch, in response to bandwidth constraints imposed on a communication path coupled to the edge device, a type of a media stream that conveys the first program to a second end user device.

A method for providing programs to multiple end user devices. The method includes: providing to multiple end user devices, via an edge device, two types of media streams that convey a first group of programs; wherein the two types comprises a unicast media stream and a multicast media stream; receiving a request from a first end user device to view a first program that belongs to the first group of programs; and selectively switching, in response to bandwidth constraints imposed on a communication path coupled to the edge device, a type of a media stream that conveys the first program to a second end user device.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be understood and appreciated more fully from the following detailed description taken in conjunction with the drawings in which:

FIG. 1 illustrates an intermediate unit and its environment according to an embodiment of the invention;

FIG. 2 illustrates an intermediate unit and its environment according to an embodiment of the invention;

FIG. 3 illustrates intermediate units and their environment according to an embodiment of the invention;

FIG. 4 illustrates an intermediate unit according to an embodiment of the invention;

FIG. 5 illustrates a user device according to an embodiment of the invention;

FIG. 6 illustrates various media streams that are provided to end user devices according to an embodiment of the invention;

FIG. 7 illustrates various group of pictures according to an embodiment of the invention;

FIG. 8 illustrates various bandwidth thresholds, according to an embodiment of the invention;

FIG. 9 illustrates a method for providing programs to multiple end users, according to an embodiment of the invention; and

FIG. 10 illustrates a method for providing programs to multiple end users, according to an embodiment of the invention.

DETAILED DESCRIPTION

It is noted that the description relates to MPEG (and especially MPEG2) compliant programs and components, but the invention is applicable to other types of media unit decoding and/or compression schemes as well.

The method and device facilitate an alteration of a type of a media stream that is provided to an end user device in response to requests generated by another end user device. If bandwidth constraints require a reduction of the aggregate bandwidth of media streams provided to an edge device then at least one media stream can be converted from a unicast media stream to a multicast media stream. If bandwidth constraints allow an increment of the aggregate bandwidth of media streams provided to an edge device then at least one media stream can be converted from a multicast media stream to a unicast media stream.

Conveniently the alteration of program (also referred to as channel) type from multicast to unicast occurs at switching points such as advertisement splicing points or channel change requests, thus providing a substantially seamless media stream type alteration. Switching in these switching points can be unnoticed by the end user.

FIG. 1 illustrates an intermediate unit 40 and its environment 10 according to an embodiment of the invention.

Intermediate unit 40 can also be referred to as aggregate unit or as device. It receives multicast media streams as well as unicast media streams and is able to alter the type (multicast, unicast) of media streams that it provides to one or more edge units (such as edge units 50, 50′ and 50″) in response to various parameters including bandwidth limitations of the communication paths between intermediate unit 40 and edge units 50, 50′ and 50″ accordingly.

Intermediate unit 40 can also receive upstream transmission from end user devices 60-62, 60′-62′ and 60″-62″ and send it towards headend 20. It is noted that multiple end user devices can be placed in a single household.

Intermediate unit 40 is also able to process media streams by applying various rate-shaping and/or compression algorithms.

Intermediate unit 40 can change the type of media streams provided to certain end user devices in response to requests from other end user devices. Thus, a change between multicast stream to unicast stream (and vice verse) provided to a certain end user device can occur even if that certain end user device does not request to change the program it receives.

Headend 20 and intermediate unit 40 are connected to each other via a headend to intermediate unit network 30. The intermediate unit 40 is connected to multiple edge units such as edge units 50-50″ via intermediate unit to edge unit network 70. It is noted that the number of edge units that are connected to a single intermediate unit can exceed and even well exceed three. Typically, each edge unit is connected to the intermediate unit 40 via a bandwidth limited communication link. This bandwidth limited communication link may cause the intermediate unit 40 to alter the type of media streams it sends to the edge unit and also may cause the intermediate unit to compress one or more media streams.

Conveniently, the edge unit is a DSLAM, but this is not necessarily so.

Environment 10 can be used to convey data, voice and video to end user devices and also receive upstream traffic from the end user devices towards headend 20. It is noted that headend 20 can have a distributed architecture, and that various components such as but not limited to video on demand servers, broadband network gateways and the like can be connected to the intermediate unit 40. In addition, more than two networks can be connected to the intermediate unit 40.

Headend 20 can receive media content from various sources such as video on demand server 92, and satellite dishes 93, 93′ and 93″. Headend 20 includes a media processor 21 that can process programs in various manners, including rate-shaping, perform PID re-mapping, generate delayed versions of a program, duplicate programs, perform statistical multiplexing, compress, encrypt and the like. It is noted that video on demand server 92 can also be connected to an edge unit and not the headend 20.

An exemplary broadband media router that has such media processing capabilities is described in U.S. Pat. No. 6,434,141 of Oz et al., which is incorporated herein by reference. An exemplary method and device for generating delayed version of programs is described in U.S. Pat. No. 6,813,270 of Oz et al., which is also incorporated herein by reference. It is further noted that intermediate unit 40 can have at least some of the video processing capabilities of the broadband media router, although it is not necessarily a router but can be only a switch.

Headend 20 transmits a headend multiplex (M0) to multiple intermediate units, such as intermediate unit 40. Each intermediate unit transmits a intermediate unit multiplex (for example multiplexes M1-M3 of intermediate unit 40) to multiple edge devices such as edge devices 50-50″. Typically, end user devices that receive the same multiplex are referred to as an end user devices group.

Media processor 21 of headend 20 is controlled by headend management unit 26 that may determine which media processing operations to apply and also determine which media streams should be included within the headend and intermediate unit multiplexes. These media streams can include multicast and unicast media streams. Typically, programs received from satellite dished 93-93″ are conveyed over multicast media streams while programs received from VOD server 92 are conveyed over unicast media streams, but this is not necessarily so.

Intermediate unit 40 can receive a program that is being conveyed over a multicast media stream and convert the multicast media stream to one or more multicast media streams. This split can be made for various reasons, including targeted advertising.

Usually, headend 20 is connected to multiple intermediate units (for example intermediate units 40 and 40′ FIG. 3), and is capable of providing to each intermediate unit a different program multiplex. It is noted that the number of intermediate units can differ from two.

Alternatively, each intermediate unit can receive a headend multiplex of programs and select the programs and the type of conveying media streams to be included within the intermediate unit multiplex of programs. Typically, the bandwidth of the headend to intermediate unit network 30 is much larger than the bandwidth of the intermediate unit to edge unit network 70, thus the headend multiplex can include much more programs than the intermediate unit multiplex. The intermediate unit to edge unit network 70 can include multiple point to point links from IU 40 to multiple edge units.

The headend management unit 26 can perform additional tasks such as billing related tasks, and the like.

Headend 20 also includes a transport system 24 that is adapted to receive one or more program multiplexes from media processor 21 and to process it such as to comply to format conveyed over headend to intermediate unit network 30. This processing may include fragmentation, aggregation, packet encapsulation, and the like.

Headend management unit 26 is usually adapted to perform resource allocation. The resource allocation determines the resources (including component, frequency, bandwidth, port and the like) that are allocated for a certain task (such as a transmission of a program). Headend management unit 26 can determine which programs to include within each multiplex, when to send program removal information and how to response to received program removal responses that are transmitted by user devices.

According to another embodiment of the invention the resource management is performed, at least partially, by management units located within one or more intermediate units.

According to an embodiment of the invention headend 20 can determine which programs to include within each program multiplex based upon various parameters, including user viewing patterns, viewing statistics and the like.

According to an embodiment of the invention the headend 20, or any of the intermediate units 40, 40′ and 40″ are capable of inserting advertisements in the various multiplexes. By knowing which program will be viewed by which end user, the headend 20 or any intermediate unit can send to that end user targeted advertisements. A targeted advertisement is an advertisement that has a certain degree of correlation with the program viewed by the end user, or with one other end user characteristic. An end user characteristic can be learnt from the end user viewing patterns, and especially from the programs the end user watches. The headend and/or intermediate units 40 or 40′ can receive end user related information from the end users or from another data source or database.

According to an embodiment of the invention the end user can also receive interactive services, thus the manner in which the end user participates in these services can also indicate which commercials to send to the end user.

Each component out of the headend 20, intermediate unit 40 or intermediate unit 40′ can insert a unique advertisement to a program that is sent to one or more end user devices.

According to an embodiment of the invention a component allocates a certain channel to a client. When the client wishes to switch programs the central component switches the programs that are sent over the certain channel. In such a case the advertisement is inserted to the new program. The channel can be characterized by a various characteristics such as its carrier frequency. The type of media stream (multicast or unicast) can be dynamically altered in response to load imposed on the edge device.

According to an embodiment of the invention an advertisement inserting components such as headend 20, intermediate unit 40 and optionally even an edge device 50 includes multiple transmitters and the allocation of program between transmitters can depend upon the popularity of transmitted programs, the expected viewing patterns and the like. Such a component can insert an advertisement into the program that is sent to one or more end user devices by applying well known advertisement insertion (splicing) techniques.

Conveniently, an advertisement insertion can include: (i) Determining one or more programs that are sent to one or more end user devices. (ii) Determining one or more advertisement to insert into the one or more programs, and (iii) Sending one or more programs that include one or more advertisements to the one or more end user device. Conveniently, an end user device can receive an advertisement that is associated with one or more characteristics of the end user. Conveniently, the characteristics are provided from a source out of the cable distribution network, but this is not necessarily so. Conveniently, the characteristic reflects the program viewed by the client or viewing patterns of the client.

It is further noted that the content of a certain multiplex can be responsive to current viewing statistics, to previous viewing patterns, to expected viewing patterns, and/or to predefined criteria. Such a criteria can be responsive to a transmission priority of a program.

FIG. 2 illustrates intermediate unit (IU) 40 and its environment 12 according to an embodiment of the invention.

Intermediate unit (U) 40 can be connected to a video source 35 via a drop and continue Ethernet port 31 and via an Internet Protocol network 35 that is followed by a broadband gateway. Intermediate unit 40 can receive video content via one of the mentioned above paths or from both. It is noted that the Internet Protocol (IP) and the Ethernet port are provided only as examples of certain communication protocols and network and that other communication protocols and networks can be connected to intermediate unit 40 without departing from the scope of the invention.

Intermediate unit 40 also communicated with middleware 37, via IP network 35 and broadband network gateway. It can exchange with middleware 37 control signals and status signals and can receive, for example the multicast and unicast addresses to be used when providing media streams to the edge devices. Middleware 37 can also provide program related information such as an Interactive Program Guide.

Intermediate unit 40 is also connected to an advertisement streaming server 34. It can receive advertisements and insert them in predefined locations that are usually identified by splice insertion tones or signals.

FIG. 3 illustrates intermediate units 40 and 40′ and their environment 11 according to an embodiment of the invention.

A first intermediate unit 40 and a second intermediate unit 40′ are connected to headends 20 and 20′ via backbone infrastructure 84 that can include headend to intermediate unit network 30. This connection can increase the redundancy of the environment (for example by sending the same content to both intermediate units) but this is not necessarily so.

Backbone infrastructure 84 is illustrated as including four backbone routers 82 that are connected to each other. It is noted that backbone infrastructure 84 can have other prior art configurations.

FIG. 4 illustrates intermediate unit 40 according to an embodiment of the invention.

Intermediate unit 40 may send data and video via edge devices towards end user devices and can receive upstream traffic from the end user devices (via edge device). Typically the downstream traffic (towards the end user devices) is transmitted via in-band or downstream communication paths while the traffic from the end-user devices is transmitted via out-of-band or upstream communication paths.

Intermediate unit 40 includes an output interface, a controller and an input interface. The controller can include egress traffic shaper 44, the controller can include resource manager 46, flow manager and multicast program manager 42 and flow manager and unicast program manager 42. Intermediate unit also includes one or more video processors such as video processing modules 43(1)-43(K) and 44(1)-44(K). Intermediate controller 40 is connected to headend to intermediate unit network 30 via WAN processing and upstream traffic shaper 41.

FIG. 5 illustrates a user device 60, according to an embodiment of the invention.

Device 60 can be a set top box or another computerized entity. It is connected to a display, such as television 69 and can receive instructions from a remote control, via interface 68. Thus, instructions such as change program instructions, alter picture or sound related instructions, as well as signals exchanged during interactive sessions are received by interface 65 and sent to controller 63. It is noted that instructions can be provided in various manners including, but not limited to, using user device buttons, using a keyboard, using a mouse and the like.

The analysis of these signals can indicate if a user views the received programs. The analysis can be responsive to the length of viewed programs, and/or to viewing patterns of the viewers. The interface 65 can also receive signals sent to the television, thus provide additional indication about the viewing related activities of the user.

User device 60 also includes a transceiver unit (denoted RX/TX unit) 61 that is adapted to receive and transmit signals, such as radio frequency signals, over edge unit to user device network which usually includes (when DSL technologies are applied) a twisted pair of wires per end user device (or per a group of end user devices residing in the same residence).

The transceiver unit 61 is connected to parser 62 that can selectively provide data and control signals to controller 63 while sending programs to decoder 64. Decoder 64 is connected to television 69.

FIG. 6 illustrates various media streams 120-130′ that are provided to end user devices according to an embodiment of the invention.

At a starting point first end user device 60 receives a first unicast media stream conveying first program 120. A third end user device 62 receives a first multicast media stream conveying first program 122. That first multicast media stream is illustrated as including group of pictures GOPs 123 (that starts at point of time A) and GOP 125 (that starts at point of time D. GOP 123 starts by I frame 123(I) and GOP 125 starts by I frame 125(I).

At point in time B the intermediate unit 40 receives a request (indicated by flag 130), from second end-user device 61, to view the first program. It is assumed that due to bandwidth constrains intermediate unit 40 can not provide three different unicast media streams (conveying the first programs) to these three end user devices and that the three end user devices shall receive the first multicast program 122.

There can be a time gap (illustrated by the difference between point in time C and D) between a switching point (such as a splicing point) that occurs at point in time C and the next I frame (I frame 125(I) of GOP 125) of the first multicast program 122. Accordingly, during this time gap an intermediate media stream (not shown) is provided to the first end user device.

During another time gap (illustrated by the difference between points in time B and D) the second end user device 62 can receive another intermediate media stream (not shown).

FIG. 7 illustrates delay unit 250 and a timing diagram 113 according to an embodiment of the invention.

The delay unit can generate multiple time shifted versions of a multicast media stream that can be provided to end user devices as intermediate media streams, during time gaps. The bit rate of these delayed multicast media streams can be changed so that after a certain period their I frames will be synchronized to the I frame of the non-delayed multicast media stream, thus allowing to switching to the non-delayed multicast media stream.

Delay unit 250 can reside in the intermediate unit.

FIG. 7 illustrates three delay periods D1-D3 and three delayed GOPs 123(1)-123(3) of non-delayed GOP 123.

FIG. 8 illustrates various bandwidth thresholds 210-224, according to an embodiment of the invention.

Conveniently, conversions of media stream types and optionally compressing media streams is responsive to the bandwidth limitation of a communication link between the intermediate unit 40 and an edge unit. The load imposed on this communication link depends upon the requests to view programs by end user devices and upon the type of media stream used to convey the program.

It is noted that although FIG. 8 illustrates five bandwidth switching thresholds that fewer than five or more than five thresholds can be defined. It is also noted that in addition to or instead of one of the illustrated bandwidth switching thresholds, compression thresholds can be applied. It is also noted that at least one unicast to multicast switching bandwidth threshold can equal a multicast to unicast switching bandwidth threshold.

The bandwidth switching thresholds define the behavior of intermediate unit 40 when the load increases (illustrated by arrow 201) or when the load decreases (illustrated by arrow 202).

The lower threshold is first multicast to unicast switching bandwidth threshold 224. It is followed by first unicast to multicast switching bandwidth threshold 210, by second unicast to multicast switching bandwidth threshold 222, by second unicast to multicast switching bandwidth threshold 212 and by upper bandwidth threshold 230.

It is noted that the upper bandwidth threshold 230 can be defined in response to a maximal amount of bandwidth that can be allocated for video transmission between the intermediate unit 40 and an edge unit connected to that intermediate unit 40.

If (i) the load is rising but is below first unicast to multicast switching threshold 210 or (ii) the load has decreased below first multicast to unicast switching bandwidth threshold 224 them intermediate unit 40 can send to end user devices unicast media streams. Thus, it can convert multicast media streams it receives to unicast media streams.

If (i) the load continues to rise such as to exceed first unicast to multicast switching bandwidth threshold 210 but is still below second unicast to multicast switching bandwidth threshold 212, or (ii) the load continues to fall below second multicast to unicast switching bandwidth threshold 222 but is still above first multicast to unicast switching bandwidth threshold 224 then some new requests to receive a programs will follow by a provision of multicast media streams.

Conveniently the programs can be prioritized based on their ability to carry revenue-generating addressable advertising. If a channel is highly prioritized for addressable advertising, the intermediate unit should allow an exception to carrying the stream as a unicast.

If (i) the load continues to rise such as to exceed second unicast to multicast switching bandwidth threshold 212 but is still below upper bandwidth threshold 230, or (ii) the load is between upper bandwidth threshold 230 but is still above second multicast to unicast switching bandwidth threshold 222 then some new requests to receive a programs will follow by a provision of multicast media streams.

If the load reaches the upper bandwidth threshold 230 new requests to receive programs can be denied.

It is noted that compression can be applied in addition to these media stream type conversions.

Conveniently, intermediate unit 40 can initiate a process of pruning media streams, starting at the lowest priority programs. Intermediate unit 40 can calculate, based on control signals indicating how many end user devices are tuned into which programs, how many unicast media streams should be converted to multicast media streams in order to lower the load and even enter another load range.

It is noted that if many media streams should be converted than this can be executed in a gradual manner. Conveniently starting from the lower priority media streams.

FIG. 9 illustrates method 300 for providing programs to multiple end user devices, according to an embodiment of the invention.

Method 300 conveniently starts by stage 305 of defining multiple bandwidth thresholds. Exemplary thresholds are illustrated in FIG. 8.

Stage 305 is followed by stage 310 of providing to multiple end user devices, via an edge device, two types of media streams that convey a first group of programs; wherein the two types include a unicast media stream and a multicast media stream.

Stage 310 is followed by stage 330 of receiving a request from a first end user device to view a first program that belongs to the first group of programs.

Stage 330 is followed by stage 350 of selectively switching, in response to bandwidth constraints imposed on a communication path coupled to the edge device, a type of a media stream that conveys the first program to a second end user device. Accordingly, the switching occurs only in a selective manner—only when the bandwidth constraints require such switching.

Conveniently, stage 350 includes selectively switching at substantially an advertisement insertion splicing point.

Conveniently, stage 350 includes selectively switching at substantially an advertisement insertion splicing point.

Conveniently, stage 350 includes selectively switching at substantially a reception of a request from the second end user device to change a program.

Conveniently, stage 350 includes determining to perform a selective switching between a first unicast media stream that conveys the media stream and a first multicast media stream that conveys the first program.

Conveniently, stage 350 includes sending to the second end-user device, during a time gap between a switching point and a provision of the first multicast media stream, a last independently decodable image of the first multicast media stream that was received prior to the determination.

Referring to the pervious figures, intermediate unit 40 can store the last group of pictures of each program it sends towards an edge device. At point in time D the intermediate unit 40 stores I-frame (123(I)) of GOP 123 and it can provide it during the time gap between points in time C and D or the time gap between B and D.

Conveniently stage 350 includes sending to the second end-user device, during a time gap between a switching point and a provision of the first multicast media stream, an intermediate media stream that comprises a last independently decodable frame of the first multicast media stream that was received prior to the determination and previously decodable frames that follow that last independently decodable frame. The independently decodable frame can be an I-frame.

Referring to the previous figures, intermediate unit 40 can store the last group of pictures of each program it sends towards an edge device. At point in time D the intermediate unit 40 stores I-frame (123(I)) of GOP 123 as well as various P frames and B frames that belong to GOP 123. These frames can be provided during the time gap between points in time C and D or the time gap between B and D.

Conveniently stage 350 includes sending to the second end-user device, during a time gap between a switching point and a provision of the first multicast media stream, an intermediate media stream that is a time shifted version of the first multicast media stream.

Conveniently, method 300 includes a stage of converting non-independently decodable frames of the first multicast media stream to independently decodable frames. This stage may be followed by sending to the second end-user device, during a time gap between a switching point and a provision of the first multicast media stream an intermediate media stream that comprises the independently decodable frames.

Conveniently, stage 350 of selectively switching is responsive to a switching priority associated with programs conveyed by media streams.

Conveniently stage 350 is responsive to a switching priority associated with programs conveyed by media streams.

Conveniently, stage 350 is responsive to a relationship between required bandwidth to the multiple bandwidth thresholds. Conveniently, stage 320 includes defining at least one unicast to multicast switching bandwidth threshold and defining at least one multicast to unicast switching bandwidth threshold; wherein the at least one unicast to multicast switching bandwidth threshold differs from the at least one multicast to unicast switching bandwidth threshold. An exemplary definition is illustrated in FIG. 8.

Conveniently method 300 includes receiving at least one multicast media stream and re-generating the at least one multicast media stream. The re-generating can include altering the address or port associated with the media stream. This can, for example, include altering the address of a media stream that is converted from a unicast media stream to a multicast media stream, altering an address of a media stream that was rate-shaped and the like.

FIG. 10 illustrates method 400 for providing programs to multiple end user devices, according to an embodiment of the invention.

Method 400 differs from method 300 by including stage 380 of compressing one or more media streams in order to comply with bandwidth constraints. This stage is usually executed when media stream type conversions are not adequate, but this is not necessarily so.

Stage 315 can be executed even before unicast media streams are converted to multicast media streams in response to the priority of the programs conveyed over the various media streams. For example a high priority program can be conveyed over a unicast media stream while another media stream is compresses if the unicast media stream has a high priority. The priority can be driven from a need to provide certain advertisements to certain end users. It is noted that the priority can be associated with the end users that receive the unicast media streams.

Variations, modifications, and other implementations of what is described herein will occur to those of ordinary skill in the art without departing from the spirit and the scope of the invention. 

1. A method for providing programs to multiple end user devices, the method comprising: providing to multiple end user devices, via an edge device, two types of media streams that convey a first group of programs, wherein the two types of media streams include a unicast media stream and a multicast media stream; receiving a request from a first end user device to view a first program that belongs to the first group of programs; and selectively switching, in response to bandwidth constraints imposed on a communication path coupled to the edge device, a type of a media stream that conveys the first program to a second end user device.
 2. The method according to claim 1, wherein the selective switching occurs at substantially an advertisement insertion splicing point.
 3. The method according to claim 1, wherein the selective switching occurs at substantially a reception of a request from the second end user device to change a program.
 4. The method according to claim 1, further comprising sending to the second end-user device, during a time gap between a switching point and provision of the media stream that conveys the first program to the second end user device, a last independently decodable image of a first multicast media stream that was received prior to the switching.
 5. The method according to claim 1, further comprising sending to the second end-user device, during a time gap between a switching point and a provision of the media stream that conveys the first program to the second end user device, an intermediate media stream that comprises a last independently decodable frame of a first multicast media stream that was received prior to the switching and previously decodable frames that follow said last independently decodable frame.
 6. The method according to claim 1, further comprising sending to the second end-user device, during a time gap between a switching point and provision of a first multicast media stream, an intermediate media stream that is a time shifted version of the first multicast media stream.
 7. The method according to claim 1, further comprising converting non-independently decodable frames of a first multicast media stream to independently decodable frames and sending to the second end-user device, during a time gap between a switching point and a provision of the first multicast media stream, an intermediate media stream that includes the independently decodable frames.
 8. The method according to claim 1, wherein the selective switching is responsive to a switching priority associated with programs conveyed by the media streams.
 9. The method according to claim 1, further comprising compressing at least one media stream in response to the bandwidth constraints imposed on the communication path coupled to the edge device.
 10. The method according to claim 1, further comprising defining multiple bandwidth thresholds and wherein the selective switching is responsive to a relationship between required bandwidth and the multiple bandwidth thresholds.
 11. The method according to claim 1, further comprising defining at least one unicast-to-multicast switching bandwidth threshold and defining at least one multicast-to-unicast switching bandwidth threshold, wherein the at least one unicast-to-multicast switching bandwidth threshold differs from the at least one multicast-to-unicast switching bandwidth threshold.
 12. The method according to claim 1, further comprising receiving at least one multicast media stream and re-generating the at least one multicast media stream.
 13. A device for providing multiple programs, the device comprises an output interface adapted to: (i) provide to an edge device two types of media streams that convey a first group of programs, wherein the two types of media streams include a unicast media stream and a multicast media stream, the media streams provided via the edge device to multiple end users; (ii) receive a request from a first end user device to view a first program that belongs to the first group of programs; and a controller adapted to determine when to selectively switch, in response to bandwidth constraints imposed on a communication path coupled to the edge device, a type of a media stream that conveys the first program to a second end user device.
 14. The device according to claim 14, wherein the controller is further adapted to perform the selective switching at substantially an advertisement insertion splicing point.
 15. The device according to claim 13, wherein the controller is further adapted to perform the selective switching at substantially a reception of a request from the second end user device to change a program.
 16. The device according to claim 13, further adapted to send to the second end-user device, during a time gap between a switching point and a provision of a first multicast media stream, a last independently decodable image of the first multicast media stream that was received prior to the switching.
 17. The device according to claim 13, further adapted to send to the second end-user device, during a time gap between a switching point and provision of a first multicast media stream, an intermediate media stream that comprises a last independently decodable frame of the first multicast media stream that was received prior to the switching and previously decodable frames that follow said last independently decodable frame.
 18. The device according to claim 13, further adapted to send to the second end-user device, during a time gap between a switching point and provision of a first multicast media stream, an intermediate media stream that is a time shifted version of the first multicast media stream.
 19. The device according to claim 13, further adapted to convert non-independently decodable frames of a first multicast media stream to independently decodable frames and to send to the second end-user device, during a time gap between a switching point and provision of the first multicast media stream, an intermediate media stream that comprises the independently decodable frames.
 20. The device according to claim 13, wherein the controller is further adapted to selectively switch in response to a switching priority associated with programs conveyed by media streams.
 21. The device according to claim 13, further adapted to compress at least one media stream in response to the bandwidth constraints imposed on the communication path coupled to the edge device.
 22. The device according to claim 13, further adapted to define multiple bandwidth thresholds, and wherein the selective switching is responsive to a relationship between required bandwidth and the multiple bandwidth thresholds.
 23. The device according to claim 22, wherein the definition comprises defining at least one unicast-to-multicast switching bandwidth threshold and defining at least one lticast-to-unicast switching bandwidth threshold; wherein the at least one unicast-to-multicast switching bandwidth threshold differs from the at least one multicast-to-unicast switching bandwidth threshold.
 24. The device according to claim 13, further adapted to receive at least one multicast media stream and to re-generate the at least one multicast media stream. 